package com.zhiche.lisa.lspm.service.lsp.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.zhiche.lisa.lspm.service.lsp.LspFormalService;
import com.zhiche.lisa.lspm.dao.mapper.lsp.LspFormalMapper;
import com.zhiche.lisa.lspm.dao.model.lsp.LspFormal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 承运商认证 service impl
 * @since 2018-05-29
 * @author lbl
 */
@Service
public class LspFormalServiceImpl implements LspFormalService {

    @Autowired
    private LspFormalMapper lspFormalMapper;

    @Override
    public List<LspFormal> selectList(Wrapper<LspFormal> ew) {
        return lspFormalMapper.selectList(ew);
    }

    @Override
    public Integer selectCount(Wrapper<LspFormal> ew) {
        return lspFormalMapper.selectCount(ew);
    }

    @Override
    public void batchInsert(List<LspFormal> formalList) {
        lspFormalMapper.batchInsert(formalList);
    }

    @Override
    public void insert(LspFormal lspFormal) {
        lspFormalMapper.insert(lspFormal);
    }

    @Override
    public void delete(Wrapper<LspFormal> ew) {
        lspFormalMapper.delete(ew);
    }

    @Override
    public void batchDeleteByLspId(List<Integer> lspIdList) {
        lspFormalMapper.batchDeleteByLspId(lspIdList);
    }
}
